/**gis相关配置文件 */

const gConfig = {
    //系统信息配置
    system_title: 'Gis一张图',
    //天地图key
    tk: "c6cb95e16857839ffb5d2d74cf2bcf8f",
    //esriApiKe
    esriApiKey: "YOUR-API-KEY",
    //底图配置
    // basemap_url: 'http://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer',
    basemap_url: {
        image_url: "http://{subDomain}.tianditu.gov.cn/img_w/wmts?" +
            "SERVICE=WMTS&" +
            "REQUEST=GetTile&" +
            "VERSION=1.0.0&" +
            "LAYER=img&" +
            "STYLE=default&" +
            "TILEMATRIXSET=w&" +
            "FORMAT=tiles&" +
            "TILEMATRIX={level}&" +
            "TILEROW={row}&" +
            "TILECOL={col}&tk=",
        sign_url: "http://{subDomain}.tianditu.gov.cn/cia_w/wmts?" + "SERVICE=WMTS&" + "REQUEST=GetTile&" + "VERSION=1.0.0&" + "LAYER=cia&" + "STYLE=default&" + "TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={level}&TILEROW={row}&TILECOL={col}&tk="
    },

    // 广西边界图层参数
    guangxiBoundry: [
        {
            title: '广西省/市/区县/乡镇边界',
            key: 'guangxiTest',
            // level: 1,
            // index: 1,
            layerUrl: '/geoserver/test-guangxi/wms',
            // checkable: false,
            children: [
                {
                    title: '乡镇边界',
                    // key: 'waterFacilities-fj',
                    // level: 2,
                    layerId: 3,
                    checked: true,
                    layerUrl: 'test-guangxi:town_guangxi',
                },{
                    title: '区县边界',
                    // key: 'waterFacilities-fj',
                    // level: 2,
                    layerId: 2,
                    checked: true,
                    layerUrl: 'test-guangxi:county_guangxi',
                },{
                    title: '市边界',
                    // key: 'waterFacilities-fj',
                    // level: 2,
                    layerId: 1,
                    checked: true,
                    layerUrl: 'test-guangxi:city_guangxi',
                },{
                    title: '省边界',
                    // key: 'waterFacilities-fj',
                    // level: 2,
                    layerId: 0,
                    checked: true,
                    layerUrl: 'test-guangxi:province_guangxi',
                },
            ],
        },
    ]
};

export default gConfig;